<?php

class indieelectroyo_scraper extends BlogScraper
{
    function __construct()
    {
        parent::__construct('indieelectroyo');
    }

    function getPostLinks()
    {
        $nodes = $this->xpath->query("//div[@id='content']//h1/a");   
        echo '<b>'.$nodes->length.'</b>';

        return $nodes;
        
    }    
}

class indieelectroyo_post_scraper extends PostScraper
{  
    function getTitle()
    {
        $text = $this->xpath->query("//h1//a")->item(0)->nodeValue;

        return $text;
    }
    
    function getLink()
    {
        $text = $this->xpath->query("//h1//a")->item(0)->getAttribute('href'); 

        return $text;
    }
    
    function getText()
    {
        $text = $this->xpath->query("//div[@id='content']/p")->item(3)->nodeValue;

        return $text;
    }
        
    function getDate()
    {
        $date = $this->xpath->query("//div[@id='content']/p")->item(1)->nodeValue;
        list($junk, $date) = explode('|', $date);

        $date = date('Y-m-d', strtotime($date));
        return $date;
             
    }
    
    
}

?>